<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.util.List"%>
<%@page import="com.boc.image.web.UserTask"%>
<%@page import="java.util.Map"%>
<%@page import="com.boc.news.beans.DateUtil"%>
<%@page import="java.util.Date"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link type="text/css" href="css/task.css" rel="stylesheet"/>
<script type="text/javascript" src="../../js/public.js"></script>
<script type="text/javascript" src="../../js/AjaxProxy.js"></script>
<script type="text/javascript" src="script/task.js"></script>
</head>
<body>
<div class="frame_01">
	<div class="frame_01_left">用户任务列表</div>
	<div class="frame_01_right">
		<a href="/index.html" target="_top">首页</a>&nbsp;》
		<a href="/core" target="_top">管理中心</a>&nbsp;》
		<font color="#000">用户任务列表</font>
	</div>
</div>
<div class="frame_02"></div>
<div class="frame_03" style="overflow:hidden;">
	<table width="755" border="0" cellspacing="0">
	  <tr>
		<td align="center" valign="top">
			<table width="700" border="0" cellspacing="0">
				<tr>
					<td width="300" style="border-bottom:1px dashed #cdcdcc;color:#FF0000" height="30" align="left">
						 【可接任务】
					</td>
					<td width="200" style="border-bottom:1px dashed #cdcdcc">&nbsp;</td>
					<td width="200" style="border-bottom:1px dashed #cdcdcc">&nbsp;</td>
				  </tr>
			<%
				List list = new UserTask().getTask(request.getSession().getAttribute("userId"));
				int size = list.size();
				for (int i = 0 ; i < size ; i ++) {
					Map bean = (Map) list.get(i);
					%>
					   <tr>
						<td width="300" style="border-bottom:1px dashed #cdcdcc" height="30" valign="middle" align="left">
						 【<a href="javascript:void(0)" onClick="aClick(<%=i%>)"><%=bean.get("cTitle")%></a>】
						</td>
						<td width="200" style="border-bottom:1px dashed #cdcdcc" align="left">
							任务到期时间：【<%=DateUtil.datetimeToString((Date)bean.get("dDqsj"),"yyyy-MM-dd")%>】
						</td>
						<td width="200" style="border-bottom:1px dashed #cdcdcc" align="center">
							<a href="javascript:receviTask(<%=bean.get("nBh") %>)" style="color:#FF0000">接收此任务</a>
							&nbsp;&nbsp;&nbsp;&nbsp;
							<a href="javascript:void(0)" style="color:#FF0000" onClick="aClick(<%=i%>)">查看详情</a>
						</td>
					  </tr>
					  <tr>
					  	<td colspan="4" align="left" id="display_<%=i%>" style="background-color:#ffffe1; border:1px solid #dce3ed; padding:10px 5px 10px 10px; line-height:20px; display:none;">
							<%=bean.get("cRwjs") %>
						</td>
					  </tr>
					<%
				}
			%>
			  
			</table>

		</td>
	  </tr>
  </table>
</div>
<div class="frame_03" style="height:50px;">

</div>
<div class="frame_04"></div>

</body>
</html>